package com.victor.entity.happy;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 娱乐
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "happy")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Happy {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "h_id", unique = true, nullable = false, length = 11)
	private Integer h_id;// 主键

	@Column(name = "h_name", length = 50)
	private String h_name;// 名称

	@Column(name = "h_theme", length = 50)
	private String h_theme;// 主题

	@Column(name = "h_position", length = 50)
	private String h_position;// 位置--全

	@Column(name = "h_position_province", length = 50)
	private String h_position_province;// 位置--省

	@Column(name = "h_position_city", length = 50)
	private String h_position_city;// 位置--市

	@Column(name = "h_position_area", length = 50)
	private String h_position_area;// 位置--区

	@Column(name = "h_position_street", length = 50)
	private String h_position_street;// 位置--街道

	@Column(name = "h_position_detailed", length = 50)
	private String h_position_detailed;// 位置--详细

	@Column(name = "h_position_remarks", length = 50)
	private String h_position_remarks;// 位置备注

	@Column(name = "h_introduce", length = 50)
	private String h_introduce;// 娱乐商家介绍

	@Column(name = "h_video", length = 50)
	private String h_video;// 商家介绍视频

	@Column(name = "h_ifhomepage", length = 50)
	private String h_ifhomepage;// 是否为首页推荐 0否 1是

	@Column(name = "t_id", length = 50)
	private String t_id; // 娱乐类型表id

	@Column(name = "adminid", length = 50)
	private String adminid; // 创建人id

	@Column(name = "h_frozen", length = 50, columnDefinition = "INT default 0")
	private String h_frozen;// 是否冻结标志 0.正常 1.冻结

	@Column(name = "h_frozen_starttime", length = 50)
	private String h_frozen_starttime;// 冻结起始时间

	@Column(name = "h_frozen_endtime", length = 50)
	private String h_frozen_endtime;// 冻结终止时间

	@Column(name = "h_frozen_cycle", length = 50)
	private String h_frozen_cycle;// 冻结周期 0.终身冻结 1.一小时, 2.一天, 3.一周, 4.一个月,5.一年,6.二年,7.三年,

	@Column(name = "h_frozen_title", length = 50)
	private String h_frozen_title;// 冻结原由标题

	@Column(name = "h_frozen_details", length = 50)
	private String h_frozen_details;// 冻结原由详情

	@Transient
	private List<HappyTime> happyTimes;// 娱乐时间list

	@Transient
	private HappyType happyType;// 娱乐类型

	@Transient
	private List<HappyPhotoGroup> happyPhotoGroups;// 娱乐多个图片组

	@Transient
	private List<HappyTheme> happyThemes;// 多个娱乐项目

	@Transient
	private List<HappyComment> happyComments;// 多个评价
}
